<?php /* Smarty version Smarty-3.1.13, created on 2013-09-25 15:54:33
         compiled from ".\templates\ledgerAj.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1258522aedd8abd9e0-11720821%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b37d1a905e56d14fef4f2301528bcee621ff05d6' => 
    array (
      0 => '.\\templates\\ledgerAj.tpl',
      1 => 1380104668,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1258522aedd8abd9e0-11720821',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_522aedd8c80057_84894214',
  'variables' => 
  array (
    'countTrans' => 0,
    'transArray' => 0,
    'totalJamaUdhar' => 0,
    'jamaUdharWord' => 0,
    'totalJama' => 0,
    'totalUdhar' => 0,
    'total' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_522aedd8c80057_84894214')) {function content_522aedd8c80057_84894214($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\haremor\\include\\smarty\\libs\\plugins\\modifier.date_format.php';
?><table width="100%">
<?php if ($_smarty_tpl->tpl_vars['countTrans']->value!=0){?>
<tr>
	<td valign="top">
		<table border="1" align="center" width="100%" cellpadding="5" cellspacing="0">
		<tr>
			<td class="table2"></td>
			<td class="table1" colspan="4" width="50%">Party : <?php echo $_smarty_tpl->tpl_vars['transArray']->value[0]['partyName'];?>
</td>
			<td class="table1" colspan="1" width="50%">Balance :<?php echo $_smarty_tpl->tpl_vars['totalJamaUdhar']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['jamaUdharWord']->value;?>
</td>
	  </tr>	
		<tr>
			<td class="table2"></td>
			<td class="table1" colspan="3">Phone No : <?php echo $_smarty_tpl->tpl_vars['transArray']->value[0]['mobile1'];?>
</td>
			<td class="table1" colspan="5">City  : <?php echo $_smarty_tpl->tpl_vars['transArray']->value[0]['city'];?>
</td>
	  </tr>	
	  <tr>
	  	<td class="table2"></td>
	  	<td class="table2" align="center" style="border-right:2px solid red;">JAMA</td>
	  	<td class="table2" align="center" colspan="4">UDHAR</td>
	  </tr>
	  <tr>
	  <td colspan=4 width="50%" valign="top">
	    <table border="0" width="100%">
	    <tr>
	    	<td class="table1"></td>
	    	<td class="table1" align="center">RUPIYA</td>
	    	<td class="table1" align="center">DATE</td>
	    	<td class="table1" align="center">VIGAT</td>
	    </tr>
	    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['name'] = 'sec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['transArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total']);
?>
	      <?php if ($_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['jamaRupiya']!=0){?>
	        <tr>
	        	<td><a href="partyRecordDelete.php?transactionId=<?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['transactionId'];?>
" onclick="return myFunction();"><img src="./images/deleteIcon.png" height="20px" width="20px"></a></td>
	        	<td align="right"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['jamaRupiya'];?>
</td>
	        	<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['date'],"%d-%m-%Y");?>
</td>
	        	<td align="center"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['jamaVigat'];?>
</td>
	        </tr>
	      <?php }?>
	    <?php endfor; endif; ?>
	    </table>
	  </td>
	  <td colspan=5 valign="top" width="60%">
	    <table border="0" width="100%">
	    	<tr>
	    		<td class="table1"></td>
	      	<td class="table1" align="center">RUPIYA</td>
	      	<td class="table1" align="center">VIGAT</td>
	      	<td class="table1" align="center">VAJAN/gm</td>
	      	<td class="table1" align="center">BHAV/10gm</td>
	      	<td class="table1" align="center">Date</td>
	      </tr>
	     <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['name'] = 'sec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['transArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec']['total']);
?>
	     <?php if ($_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['udhaarRupiya']!=0){?>
	      <tr>
	      	<td><a href="partyRecordDelete.php?transactionId=<?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['transactionId'];?>
" onclick="return myFunction();"><img src="./images/deleteIcon.png" height="20px" width="20px"></a></td>
	      	<td align="right"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['udhaarRupiya'];?>
</td>
	      	<td align="center"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['udhaarVigat'];?>
</td>
	      	<td align="right"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['udhaarVajan'];?>
</td>
	      	<td align="right"><?php echo $_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['udhaarBhav'];?>
</td>
	      	<td align="center" NOWRAP><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['transArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['date'],"%d-%m-%Y");?>
</td>
	      </tr>
	      <?php }?>
	      <?php endfor; endif; ?>
	    </table>
	  </td>
	  </tr>
	  <tr>
	  <td colspan="4">
	    <table>
	      <tr>
          <td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
	    	  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['totalJama']->value;?>
</td>
	      </tr>
	    </table>
	  </td>
	  <td colspan="5">
	    <table>
	      <tr>
	      	<td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	      	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['totalUdhar']->value;?>
</td>
	      	<td class="table2" align="center" colspan="4"></td>
	      </tr>
	    </table>
	  </td>
	  </tr>
	  </table>
	  <table>
	     <tr align="center" colspan="10"><b>Net Amount :</b> <?php echo $_smarty_tpl->tpl_vars['total']->value;?>

	     </tr>
	    <table>
	</td>
</tr>
<?php }else{ ?>
<tr>
	<td>
		No Records
	</td>
</tr>
<?php }?>
</table><?php }} ?>